package com.fulu.netty.luban.flrpc.client.netty;

import io.netty.channel.*;

public class ClientSocketNettyHandler extends ChannelHandlerAdapter {

    Object response;

    public Object getResponse() {
        return response;
    }

    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        this.response = msg;
        ctx.close();
    }
}
